
verify()

$('.layui-card-body .layui-form').on('submit',async  function(e){
    e.preventDefault()
    console.log('submit');
    let obj={
        oldPwd:$('.oldPwd').val(),
        newPwd:$('.newPwd').val()
    }
    

    //提交修改按钮 发送axios请求 
    const res= await userInfoAxios('updatepwd',strFormat(obj))
    console.log(res);
    if(res.data.status===0){
        window.parent.location.href='/login.html'
    }
})